<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="layout">
    <div class="container-fluid" th:fragment="content" id="container-fluid">
        <div id="pad-wrapper">
            <div class="table-products section">
                <div class="row-fluid">
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th class="span6" th:if="${activeList != null}">可报名</th>
                            <th class="span6" th:if="${activeList == null}">不可报名项</th>
                            <th class="span4" th:if="${activeList != null}">操作</th>
                            <th class="span4" th:if="${activeList == null}">开始日期</th>
                            <th class="span4" th:if="${activeList == null}">截止日期</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:if="${activeList == null}" th:each="busi : ${busiList}">
                            <td class="description" th:text="${busi.title}">
                            <td th:text="${#dates.format(busi.sdate,'yyyy-MM-dd HH:mm:ss')}" style="font-size: 16px;"></td>
                            <td th:text="${#dates.format(busi.edate,'yyyy-MM-dd HH:mm:ss')}" style="font-size: 16px;"></td>
                        </tr>
                        <tr class="first tr-item" th:each="busi : ${activeList}">
                            <td class="description" th:text="${busi.title}">
                        </td>
                        <td style="text-align: center;">
                            <button type="button" class="rgst-btn" data-last="Finish" style="height: 45px;"
                                    th:busiId="${busi.id}" onclick="toBusi(this)" >
                                报名
                            </button>
                        </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</html>
<div id="main-stats">
    <div class="row-fluid stats-row">
        <div class="span5 stat">
            <div class="rgst-btn" onclick="javascrtpt:window.location.href='/enroll/show'">
                 查询
            </div>
        </div>
    </div>
</div>